<h1>Delivery Order Document</h1>
<fieldset>
<legend> Information </legend>
<?php if($deliveryorder){
    $tempsession = $tempsession = $this->session->userdata('user');
    foreach($deliveryorder['deliveryorder'] as $rows){
        $location_file = $rows->LocationFile;
        $iddeliveryorder = $rows->idDeliveryOrder;
?>
<table>
    <tr>
        <td>Sender</td>
        <td><label><?php echo $rows->slname;?></label></td>
        <td>Replier</td>
        <td><label><?php echo $rows->cname;?></label></td>
    </tr>
    <tr>
        <td>Sent Date</td>
        <td><label><?php echo $rows->SentDate;?></label></td>
        <td>Replied Date</td>
        <td><label><?php echo $rows->RepplyDate;?></label></td>
    </tr>
    <tr>
        <td>Sent Status</td>
        <td><label><?php echo $rows->SentStatus;?></label></td>
        <td>Replied Status</td>
        <td><label><?php echo $rows->RepplyStatus;?></label></td>
    </tr>
    <tr>
        <td>Sent Message</td>
        <td><label><?php echo $rows->SentNote;?></label></td>
        <td>Replied Message</td>
        <td><?php echo $rows->RepplyNote;?></td>
    </tr>
</table>
</fieldset>
<br/>
<fieldset>
<legend> Content </legend>
<table>
    <tr>
        <td><label>Creation Date</label></td>
        <td><label><?php echo $rows->CreationDate;?></label></td>
        <td>Delivery Order No</td>
        <td><label><?php echo $rows->DONumber;?></label></td>
    </tr>
    <tr>
        <td><label>Bill Of Lading No</label></td>
        <td><label><?php echo $rows->BLNumber;?></label></td>
        <td>BC11 No</td>
        <td><label><?php echo $rows->BC11Number;?></label></td>
    </tr>
    <tr>
        <td>Shipper</td>
        <td><label><?php echo $rows->SLName;?></label></td>
        <td></td>
        <td></td>
    </tr>
    <tr>
        <td></td>
        <td><label><?php echo $rows->SLAddress;?></label></td>
        <td></td>
        <td></td>
    </tr>
    <tr>
        <td></td>
        <td><label><?php echo $rows->SLTelp;?></label></td>
        <td></td>
        <td></td>
    </tr>
    <tr>
        <td>Deliver To</td>
        <td><label><?php echo $rows->DTName;?></label></td>
        <td>Issued To</td>
        <td><label><?php echo $rows->ITName;?></label></td>
    </tr>
    <tr>
        <td></td>
        <td><label><?php echo $rows->DTAddress;?></label></td>
        <td></td>
        <td><label><?php echo $rows->ITAddress;?></label></td>
    </tr>
    <tr>
        <td></td>
        <td><label><?php echo $rows->DTTelp;?></label></td>
        <td></td>
        <td><label><?php echo $rows->ITTelp;?></label></td>
    </tr>
    <tr>
        <td>Terminal</td>
        <td><label><?php echo $rows->Terminal;?></label></td>
        <td>Port of Loading</td>
        <td><label><?php echo $rows->PortOfLoading;?></label></td>
    </tr>
    <tr>
        <td>Vessel</td>
        <td><label><?php echo $rows->Vessel;?></label></td>
        <td>Port of Discharge</td>
        <td><label><?php echo $rows->PortOfDischarge;?></label></td>
    </tr>
    <tr>
        <td>GoDown</td>
        <td><label><?php echo $rows->GoDown;?></label></td>
        <td>ArriveOn</td>
        <td><label><?php echo $rows->ArriveOn;?></label></td>
    </tr>
</table>
<br/>
<?php 
    }
?>
    <fieldset>
        <legend>Line Item</legend>
        <table>
            <tr>
                <td>Container No</td>
                <td>Seal No</td>
                <td>Package</td>
                <td>Description</td>
                <td>Weight</td>
                <td>Measurement</td>
            </tr>
            <?php if($deliveryorder['lineitem']){ foreach($deliveryorder['lineitem'] as $rows){ ?>
            <tr>
                <td><?php echo $rows->ContainerNo;?></td>
                <td><?php echo $rows->SealNo;?></td>
                <td><?php echo $rows->Package;?></td>
                <td><?php echo $rows->Description;?></td>
                <td><?php echo $rows->Weight;?></td>
                <td><?php echo $rows->Measurement;?></td>
            </tr>
            <?php }}?>
        </table>
    </fieldset>
    <br/>
    <label><a href="<?php echo base_url();?>shippingline/downloaddocument/DO/<?php echo $iddeliveryorder;?>" target="_blank" >Download Document</a></label>
    
</fieldset>
<br/>
<?php
    }
?>